package mainFiles;
import java.awt.Dimension;
import java.sql.SQLException;

import javax.swing.JFrame;

import swingFiles.LogIn;


/**
 * Provides the main method for starting the gym management system application.
 * @author Emily Linniman
 * @version November 30, 2014
 *
 */
public class Main {
	/** An instance of the code to interact with the gym management system database. */
	private static GmsDB db;
	
	/**
	 * The main method for starting the gym management system.
	 * @param args
	 * @throws SQLException
	 */
	@SuppressWarnings("static-access")
	public static void main(String args[]) throws SQLException {
		db = new GmsDB();
		db.createConnection();
		
		JFrame testFrame = new JFrame();
		testFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		testFrame.setPreferredSize(new Dimension(500,500));

		LogIn newPanel = new LogIn(testFrame);

		testFrame.setContentPane(newPanel);
		testFrame.setVisible(true);
		testFrame.pack();
		

				
	}
}
